<div class="window user-video-widget">
        <div class="window-head">
                <a href="/video/{$user->user_id}" class="window-title">Видео</a>
                <p class="window-info">всего: {$videoCount}</p>
                <a href="/video/{$user->user_id}" class="window-link">все</a>
                {if !Yii::app()->user->isGuest && $isAuthor == true}
                <a href="/video/create" class="window-link">+ добавить</a>
                {/if}
        </div>
        <div class="window-content">
            {foreach from=$videos item="data" name="videoLoop"}
            <div class="record video-record {if $smarty.foreach.videoLoop.last}last{/if}">
                <div class="video-desctiption">
                    <a href="/video/view/{$data->video_id}" class="record-title">{$data->title}</a>
                    <p class="record-info">{$data->description|truncate:30:"...":true}</p>
                    <a href="/video/view/{$data->video_id}" class="record-link">посмотреть</a>
                </div>
            </div>
            {/foreach}
        </div>
        <div class="window-bottom-left">
                <div class="window-bottom-right">
                </div>
        </div>
</div>
